import java.util.*;

public class Example03{
	public static void main(String[] args){
		ArrayList link = new ArrayList();
		link.add("stu1");
		link.add("stu2");
		link.add("stu3");
		link.add("stu4");
		Iterator it = link.iterator();
		while(it.hasNext()){
			Object obj = it.next();
			System.out.println(obj);
		}
	}
}